﻿using Microsoft.AspNetCore.Authentication;

namespace AuthClientApi.OAuth.WeChat
{
    public static class WeChatOAuth
    {
        public const string authenticationScheme = "Wechat";
        public static AuthenticationBuilder AddWeChat(this AuthenticationBuilder authenticationBuilder, Action<WeChatOptions> configureOptions)
        {
            return authenticationBuilder.AddOAuth<WeChatOptions, WeChatHandler>(authenticationScheme, configureOptions);
        }
    }
}
